<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>General</title>
</head>

<body>
<form name="frmGene" method="post" action="<?php echo site_url('generate/dis');?>" >
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="510" height="30">Table 
      <input type="text" name="title" id="title" value="<?php echo $table?>" /></td>
  </tr>
  <tr>
    <td height="30">Forenkey
      <input name="txt_fore" type="text" id="txt_fore" value="" size="50" />products_type tid; account ac</td>
  </tr>
  <tr>
    <td height="30"><table width="100%" border="1" cellspacing="1" cellpadding="1">
      
      <tr>
        <td width="50%" height="50" align="center">Display admin</td>
        <td align="center">Action display</td>
        </tr>
        
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
       
          <tr>
            <td width="100%" align="left">   <ul id="sortableLeft">
            
                        
       <?php 
		foreach ($fields as $field) {
		?>
        <li>
            <input type="checkbox" name="arrDisplay[]" id="arrDisplay[]"  value="<?php echo $field; ?>" checked="checked" />
            <?php echo $field; ?>
        </li>
          <?php
		}
		?>
         </ul></td>
          </tr>
      
        </table></td>
        <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" >
   
        <tr><td width="70%"><ul id="sortableRight">
 <?php 
		$i = 1;
		foreach ($fields as $field) {
		?> 
        <li>
        <input type="checkbox" name="arrAction[]" id="arrAction[]"  value="<?php echo $field; ?>" checked="checked" />
        <?php echo $field;?>
		<span style="margin-left:30px"></span>
        <select name="sAction[]" id="sAction[]">
              <option value="none" selected="selected">-- None --</option>
              <option value="text">TextField</option>
              <option value="radio">Radio</option>
              <option value="checkbox">CheckBox</option>
              <option value="editor">editor</option>
              <option value="textarea">textarea</option>
              <option value="selectbox">Select box</option>
              <option value="file">File</option>
        </select>
        </li>

   <?php
		$i++;
		}
		?>
    </ul></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><input type="text" name="arrPK[]" id="arrPK[]" style="width:100%" /></td>
          <td>&nbsp;</td>
        </tr>
       
        </table>
          </td>
        </tr>

    </table></td>
  </tr>
  <tr>
    <td height="30" align="center"><input type="submit" name="button" id="button" value="Submit" /></td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
  </tr>
</table>
</form>

<script type="text/javascript" src="/data/js/lib.js"></script>
<script type="text/javascript" src="/data/js/l10n.js"></script>
<script type="text/javascript" src="/data/js/util.js"></script>
<script type="text/javascript" src="/data/js/start.js"></script>

<script src="/data/js/ui/jquery.ui.core.js"></script>
<script src="/data/js/ui/jquery.ui.widget.js"></script>
<script src="/data/js/ui/jquery.ui.mouse.js"></script>
<script src="/data/js/ui/jquery.ui.sortable.js"></script>


</body>
</html>